<?php

namespace App\Exceptions;

use Exception;

class Fail extends Exception
{
    public function render(): array
    {
        return ['code' => $this->getCode() ?: 20500, 'msg' => $this->getMessage(), 'data' => $this->getTrace()];
    }
}
